package day01;

public class day1 {
    public static void main(String[] args) {
        int p=101;
        double sum=0;
        if(p<=10){
            sum=p*1.1;
            System.out.println("当月工资为"+ sum +"w");
        }else if(p>10 && p<=20){
            sum=p+10*0.1+(p-10)*0.75;
            System.out.println("当月工资为"+ sum +"w");
        }else if (p>20 &&p<=40){
            sum=p+(p-20)*0.05;
            System.out.println("当月工资为"+ sum +"w");
        }else if(p>40 &&p<=60){
            sum=p+(p-40)*0.03;
            System.out.println("当月工资为"+ sum +"w");
        }else if(p>60 &&p<=100){
            sum=p+(p-60)*0.015;
            System.out.println("当月工资为"+ sum +"w");
        }else{
            sum=p+(p-100)*0.01;
            System.out.println("当月工资为"+ sum +"w");
        }





    }
}
